<!DOCTYPE html>
<html>
<head>
  {include file="top.tpl"}
</head>
<body class="skin-blue">
<div class="wrapper">
  	{include file="bread_crumbs.tpl"}
  	<!--引入面包屑-->
  	<section class="base-setting-wrap">
	  	<div class="row">
			<div class="col-md-12">
				<div class="box">
	                <div class="box-header with-border clearfix">               	
	                	<div class="box-form pull-right form-group-sm">
	                		<p class="pull-right"><a href="javascript:;" class="btn btn-success btn-sm" id="js_toggleSearchBox"><i class="fa fa-search"></i><span class="pl5">搜索选项</span></a></p>
	                	</div>
	                	<div class="clearfix"></div>
						<div class="search-box" id="js_searchBox">
							<form method="get" class="form-inline">
								<div class="form-group-sm">	
									<p>
										<label class="control-label">产品编码（支持多SKU搜索用“，”隔开）：</label>
										<input type="text" class="form-control" name='goods_sns' value="{$params.goods_sns}">
										<select name='website' id='website' class="form-control">
											<option value="0">请选择网站</option>
											<option value="chinabrands.com" {if isset($params['website']) && $params['website']=='chinabrands.com'}selected=selected{/if}>chinabrands.com
											</option>
										</select>
										<select name='type' id='type' class="form-control ml10">
											<option value="">请选择上下架类型</option>
											<option value="1" {if ($params['type'] != '') && $params['type']==1}selected=selected{/if}>上架</option>
											<option value="0" {if ($params['type'] != '') && $params['type']==0}selected=selected{/if}>下架</option>
										</select>
										<label class="control-label">操作人：</label>
										<input type="text" class="form-control" name='add_user' value="{$params.add_user}">
										<label class="control-label">操作时间：</label>
										<input type="text" class="form-control js_datePicker date_start" name="start" value="{$params.start}" placeholder="开始时间">-
										<input type="text" class="form-control js_datePicker date_end" name="end" value="{$params.end}" placeholder="结束时间">
										<button type="submit" class="btn btn-primary btn-sm">立即搜索</button>											
									</p>							
								</div>
							</form>
						</div>
	                </div>
	                <!-- /.box-header -->
	                <div class="box-body">
	                  <table class="table table-bordered table-striped table-hover">
	                  	<thead>
	                    <tr>
	                      <th >产品编码</th>
	                      <th >同步网站</th>
	                      <th >上下架类型</th>
	                      <th >操作人</th>
	                      <th >网站上下架时间</th>
	                      <th >接收时间</th>
	                    </tr>
	                    </thead>	                    
	                    <tbody>
	                   	{foreach $lists as $l}
	                   	<tr>	 						
							<td>{$l.goods_sn}</td>
							<td>{$l.web_site}</td>
							<td>{if $l.type}上架{else}下架{/if}</td>
							<td>{$l.add_user}</td>
							<td>{$l.up_time}</td>
							<td>{$l.create_time}</td>														
						</tr>		
	                   	{/foreach}
	                    </tbody>			                 
	              	</table>
	                </div>
	                <!-- .box-body -->
	                <div class="box-footer text-center clearfix">
					{$page_link}
	                </div>
	              </div>
			</div>
		</div>
	</section>
 </div>
{include file='foot.tpl'}
<script type="text/javascript">
{literal}
$(function(){
	$('.date_start').datetimepicker({
	    format: "yyyy-mm-dd",
        minView:2,
        autoclose: true,
        todayHighlight: false
	}).on('changeDate', function(ev){
        $(".date_end").val("").datetimepicker('setStartDate',$(this).val());
    });
    $('.date_end').datetimepicker({
	    format: "yyyy-mm-dd",
        minView:2,
        autoclose: true,
        todayHighlight: false
	});
})
{/literal}
</script>
</body>
</html>